package com.softa.common.sysconfig.exception;

import com.softa.common.sysconfig.support.HttpCode;

/**
 * description goes here.
 *
 * @author 杨磊
 * @date 2019/5/22 22:33
 * @since 1.0
 **/
public class UnAuthorizedException extends BaseException {

    public UnAuthorizedException() {
    }

    public UnAuthorizedException(Throwable ex) {
        super(ex);
    }

    public UnAuthorizedException(String message) {
        super(message);
    }

    public UnAuthorizedException(String message, Throwable ex) {
        super(message, ex);
    }

    public UnAuthorizedException(Integer msgCode, String message) {
        super(msgCode, message);
    }

    public UnAuthorizedException(Integer msgCode, String message, Throwable ex) {
        super(msgCode, message, ex);
    }

    @Override
    public HttpCode getCode() {
        return HttpCode.UNAUTHORIZED;
    }
}
